// 解构赋值

// ES5
function getData(url) {
  ajax(url, function (res) {
    let data = res.data;
    this.list = data;
  });
}

// ES6
async function getData(url) {
  const { data } = await axios.get(url);
  this.list = data;
}
